package org.springframework.beans.factory.parsing;

import org.springframework.core.io.Resource;

public class ReaderContext {

    private final Resource resource;
    
    private final ProblemReporter problemReporter;
    
    private final ReaderEventListener readerEventListener;
    
    private final SourceExtractor sourceExtractor;

    public ReaderContext(Resource resource, ProblemReporter problemReporter,
            ReaderEventListener readerEventListener, SourceExtractor sourceExtractor) {
        this.readerEventListener = readerEventListener;
        this.resource = resource;
        this.problemReporter = problemReporter;
        this.sourceExtractor = sourceExtractor;
    }

    public Object extractSource(Object sourceCandidate,
            Resource definingResource) {
        return sourceExtractor;
    }
}
